{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\perezeo\Dropbox\Language, Gender & Politics\Estonia\Language and Ethnic\JEPS\Final\JEPS_replication\Study2_analysis_log.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}16 Aug 2018, 06:53:59

{com}. do "C:\Users\perezeo\Dropbox\Language, Gender & Politics\Estonia\Language and Ethnic\JEPS\Final\JEPS_replication\Study2_analysis.do"
{txt}
{com}. ****************************************************************************************************************************
. ***  PROJECT:  "Language Heightens the Political Salience of Ethnic Divisions", Journal of Experimental Political Science
. ***  AUTHORS: Efren O. Perez and Margit Tavits
. ***  DESCRIPTION: Stata code to replicate results from Study 2
. ***  DATE: June 6, 2018
. ****************************************************************************************************************************
. 
. 
. ********************************************************
. **Section 1: setting up the data for the analysis ******
. ********************************************************
. 
. set more off
{txt}
{com}. 
. *** Generate "age"
. gen age=how_old 
{txt}
{com}. 
. ***Generate "Russian as first language"
. gen russfirst=0
{txt}
{com}. recode russfirst (0=1) if first_lg==1
{txt}(russfirst: 456 changes made)

{com}. tab russfirst

  {txt}russfirst {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        744       62.00       62.00
{txt}          1 {c |}{res}        456       38.00      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,200      100.00
{txt}
{com}. 
. ***Generate "female"
. gen female=0
{txt}
{com}. recode female (0=1) if gender==1
{txt}(female: 729 changes made)

{com}. tab female

     {txt}female {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        471       39.25       39.25
{txt}          1 {c |}{res}        729       60.75      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,200      100.00
{txt}
{com}. 
. ***Generate "Prefer russian interview"
. gen prefruss=0
{txt}
{com}. recode prefruss (0=1) if preferred_lg==2
{txt}(prefruss: 375 changes made)

{com}. tab prefruss

   {txt}prefruss {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        825       68.75       68.75
{txt}          1 {c |}{res}        375       31.25      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,200      100.00
{txt}
{com}. 
. ***Generate "education"
. gen edu=education
{txt}
{com}. 
. ***Generate "ideology"
. generate ideology = ideol
{txt}
{com}. replace ideology = . if ideol==11
{txt}(18 real changes made, 18 to missing)

{com}. replace ideology = . if ideol==12
{txt}(31 real changes made, 31 to missing)

{com}. replace ideology = . if ideol==13
{txt}(413 real changes made, 413 to missing)

{com}. 
. ***Generate ideology dummies for "left," "right," and "center," with others as baseline
. gen left=0
{txt}
{com}. recode left 0=1 if ideol==0
{txt}(left: 18 changes made)

{com}. recode left 0=1 if ideol==1
{txt}(left: 8 changes made)

{com}. recode left 0=1 if ideol==2
{txt}(left: 16 changes made)

{com}. recode left 0=1 if ideol==3
{txt}(left: 31 changes made)

{com}. recode left 0=1 if ideol==4
{txt}(left: 55 changes made)

{com}. 
. gen right=0
{txt}
{com}. recode right 0=1 if ideol==6
{txt}(right: 50 changes made)

{com}. recode right 0=1 if ideol==7
{txt}(right: 94 changes made)

{com}. recode right 0=1 if ideol==8
{txt}(right: 88 changes made)

{com}. recode right 0=1 if ideol==9
{txt}(right: 16 changes made)

{com}. recode right 0=1 if ideol==10
{txt}(right: 40 changes made)

{com}. 
. gen center=0
{txt}
{com}. recode center 0=1 if ideol==5
{txt}(center: 322 changes made)

{com}. 
. ***Generate "assigned interview language" (treatment)
. gen eston=0
{txt}
{com}. recode eston (0=1) if assigned_lg==1
{txt}(eston: 612 changes made)

{com}. 
. gen russian=0
{txt}
{com}. recode russian (0=1) if assigned_lg==2
{txt}(russian: 588 changes made)

{com}. 
. ***Generate "nationalist"
. generate nationalist=parties
{txt}
{com}. recode nationalist (1 2 4 = 0)(3=1)
{txt}(nationalist: 1200 changes made)

{com}. 
. 
. ****************************************************
. **Section 2: Analyses in the main text and SI ******
. ****************************************************
. 
. ***Table 1, main text
. ***Model 3
. logit nationalist russian

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-809.98438}  
Iteration 1:{space 3}log likelihood = {res:-801.07203}  
Iteration 2:{space 3}log likelihood = {res:-801.06699}  
Iteration 3:{space 3}log likelihood = {res:-801.06699}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}     1,200
{txt}{col 49}LR chi2({res}1{txt}){col 67}= {res}     17.83
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log likelihood = {res}-801.06699{txt}{col 49}Pseudo R2{col 67}= {res}    0.0110

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1} nationalist{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}russian {c |}{col 14}{res}{space 2} .4986134{col 26}{space 2} .1185383{col 37}{space 1}    4.21{col 46}{space 3}0.000{col 54}{space 4} .2662826{col 67}{space 3} .7309442
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.6348783{col 26}{space 2} .0849528{col 37}{space 1}   -7.47{col 46}{space 3}0.000{col 54}{space 4}-.8013827{col 67}{space 3}-.4683738
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. **Calculate substantive effects and p-values for main text
. logit nationalist i.russian

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-809.98438}  
Iteration 1:{space 3}log likelihood = {res:-801.07203}  
Iteration 2:{space 3}log likelihood = {res:-801.06699}  
Iteration 3:{space 3}log likelihood = {res:-801.06699}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}     1,200
{txt}{col 49}LR chi2({res}1{txt}){col 67}= {res}     17.83
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log likelihood = {res}-801.06699{txt}{col 49}Pseudo R2{col 67}= {res}    0.0110

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1} nationalist{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}1.russian {c |}{col 14}{res}{space 2} .4986134{col 26}{space 2} .1185383{col 37}{space 1}    4.21{col 46}{space 3}0.000{col 54}{space 4} .2662826{col 67}{space 3} .7309442
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.6348783{col 26}{space 2} .0849528{col 37}{space 1}   -7.47{col 46}{space 3}0.000{col 54}{space 4}-.8013827{col 67}{space 3}-.4683738
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. margins russian
{res}
{txt}Adjusted predictions{col 49}Number of obs{col 67}= {res}     1,200
{txt}Model VCE{col 14}: {res}OIM

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(nationalist), predict()}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}russian {c |}
{space 10}0  {c |}{col 14}{res}{space 2} .3464052{col 26}{space 2} .0192341{col 37}{space 1}   18.01{col 46}{space 3}0.000{col 54}{space 4} .3087072{col 67}{space 3} .3841033
{txt}{space 10}1  {c |}{col 14}{res}{space 2} .4659864{col 26}{space 2} .0205719{col 37}{space 1}   22.65{col 46}{space 3}0.000{col 54}{space 4} .4256662{col 67}{space 3} .5063066
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(russian)
{res}
{txt}Conditional marginal effects{col 49}Number of obs{col 67}= {res}     1,200
{txt}Model VCE{col 14}: {res}OIM

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(nationalist), predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:1.russian}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}1.russian {c |}{col 14}{res}{space 2} .1195812{col 26}{space 2} .0281629{col 37}{space 1}    4.25{col 46}{space 3}0.000{col 54}{space 4} .0643828{col 67}{space 3} .1747795
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. 
. ***Model 4
. logit nationalist russian prefruss

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-809.98438}  
Iteration 1:{space 3}log likelihood = {res:-769.61867}  
Iteration 2:{space 3}log likelihood = {res:-769.35677}  
Iteration 3:{space 3}log likelihood = {res:-769.35677}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}     1,200
{txt}{col 49}LR chi2({res}2{txt}){col 67}= {res}     81.26
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log likelihood = {res}-769.35677{txt}{col 49}Pseudo R2{col 67}= {res}    0.0502

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1} nationalist{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}russian {c |}{col 14}{res}{space 2}  .529879{col 26}{space 2} .1218756{col 37}{space 1}    4.35{col 46}{space 3}0.000{col 54}{space 4} .2910071{col 67}{space 3} .7687509
{txt}{space 4}prefruss {c |}{col 14}{res}{space 2}-1.072431{col 26}{space 2} .1403838{col 37}{space 1}   -7.64{col 46}{space 3}0.000{col 54}{space 4}-1.347578{col 67}{space 3}-.7972841
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.3451629{col 26}{space 2} .0925427{col 37}{space 1}   -3.73{col 46}{space 3}0.000{col 54}{space 4}-.5265433{col 67}{space 3}-.1637825
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *************************
. ***Results in the SI ****
. *************************
. 
. ***Table SI.2.4: balance check
. by eston, sort : summarize edu, detail

{txt}{hline}
-> eston = 0

                             edu
{hline 61}
      Percentiles      Smallest
 1%    {res}        2              1
{txt} 5%    {res}        3              2
{txt}10%    {res}        3              2       {txt}Obs         {res}        588
{txt}25%    {res}        3              2       {txt}Sum of Wgt. {res}        588

{txt}50%    {res}        3                      {txt}Mean          {res} 3.760204
                        {txt}Largest       Std. Dev.     {res} 1.012014
{txt}75%    {res}        5              5
{txt}90%    {res}        5              5       {txt}Variance      {res} 1.024172
{txt}95%    {res}        5              5       {txt}Skewness      {res}  .216478
{txt}99%    {res}        5              5       {txt}Kurtosis      {res} 1.483491

{txt}{hline}
-> eston = 1

                             edu
{hline 61}
      Percentiles      Smallest
 1%    {res}        2              2
{txt} 5%    {res}        3              2
{txt}10%    {res}        3              2       {txt}Obs         {res}        612
{txt}25%    {res}        3              2       {txt}Sum of Wgt. {res}        612

{txt}50%    {res}        3                      {txt}Mean          {res} 3.761438
                        {txt}Largest       Std. Dev.     {res} 1.017981
{txt}75%    {res}        5              5
{txt}90%    {res}        5              5       {txt}Variance      {res} 1.036285
{txt}95%    {res}        5              5       {txt}Skewness      {res} .2196491
{txt}99%    {res}        5              5       {txt}Kurtosis      {res}  1.42396

{txt}
{com}. ranksum educ, by(eston)

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

       eston {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    588{col 26}  353252.5{col 38}    353094
           {txt}1 {c |}{res}{col 17}    612{col 26}  367347.5{col 38}    367506
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}   1200{col 26}    720600{col 38}    720600

{txt}unadjusted variance{col 22}{res}  36015588
{txt}adjustment for ties{col 22}{res}-7144810.4
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}  28870778

{txt}Ho: educat~n(eston==0) = educat~n(eston==1)
{col 14}z = {res}  0.029
{txt}{col 5}Prob > |z| = {res}  0.9765
{txt}
{com}. 
. by eston, sort : summarize female

{txt}{hline}
-> eston = 0

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}female {c |}{res}        588    .6309524    .4829577          0          1

{txt}{hline}
-> eston = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}female {c |}{res}        612    .5849673    .4931307          0          1

{txt}
{com}. tab female eston, chi2

           {txt}{c |}         eston
    female {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       217        254 {txt}{c |}{res}       471 
{txt}         1 {c |}{res}       371        358 {txt}{c |}{res}       729 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       588        612 {txt}{c |}{res}     1,200 

{txt}          Pearson chi2({res}1{txt}) = {res}  2.6595  {txt} Pr = {res}0.103
{txt}
{com}. 
. by eston, sort : summarize age, detail

{txt}{hline}
-> eston = 0

                             age
{hline 61}
      Percentiles      Smallest
 1%    {res}       22             18
{txt} 5%    {res}       28             19
{txt}10%    {res}       32             20       {txt}Obs         {res}        588
{txt}25%    {res}       40             21       {txt}Sum of Wgt. {res}        588

{txt}50%    {res}       53                      {txt}Mean          {res} 51.47279
                        {txt}Largest       Std. Dev.     {res} 13.71482
{txt}75%    {res}       63             74
{txt}90%    {res}       69             74       {txt}Variance      {res} 188.0964
{txt}95%    {res}       72             74       {txt}Skewness      {res}-.2688774
{txt}99%    {res}       74             74       {txt}Kurtosis      {res} 2.084798

{txt}{hline}
-> eston = 1

                             age
{hline 61}
      Percentiles      Smallest
 1%    {res}       20             18
{txt} 5%    {res}       27             19
{txt}10%    {res}       31             19       {txt}Obs         {res}        612
{txt}25%    {res}       39             19       {txt}Sum of Wgt. {res}        612

{txt}50%    {res}       50                      {txt}Mean          {res} 49.84314
                        {txt}Largest       Std. Dev.     {res} 13.99842
{txt}75%    {res}       61             74
{txt}90%    {res}       68             74       {txt}Variance      {res} 195.9557
{txt}95%    {res}       72             74       {txt}Skewness      {res}-.1089727
{txt}99%    {res}       74             74       {txt}Kurtosis      {res} 2.017034

{txt}
{com}. ranksum age, by(eston)

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

       eston {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    588{col 26}    364982{col 38}    353094
           {txt}1 {c |}{res}{col 17}    612{col 26}    355618{col 38}    367506
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}   1200{col 26}    720600{col 38}    720600

{txt}unadjusted variance{col 22}{res}  36015588
{txt}adjustment for ties{col 22}{res}-17257.731
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}  35998330

{txt}Ho: age(eston==0) = age(eston==1)
{col 14}z = {res}  1.981
{txt}{col 5}Prob > |z| = {res}  0.0475
{txt}
{com}. 
. by eston, sort : summarize left

{txt}{hline}
-> eston = 0

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 8}left {c |}{res}        588    .1139456    .3180157          0          1

{txt}{hline}
-> eston = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 8}left {c |}{res}        612    .0996732    .2998088          0          1

{txt}
{com}. tab left eston, chi2

           {txt}{c |}         eston
      left {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       521        551 {txt}{c |}{res}     1,072 
{txt}         1 {c |}{res}        67         61 {txt}{c |}{res}       128 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       588        612 {txt}{c |}{res}     1,200 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.6411  {txt} Pr = {res}0.423
{txt}
{com}. 
. by eston, sort : summarize right

{txt}{hline}
-> eston = 0

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}right {c |}{res}        588    .2431973    .4293785          0          1

{txt}{hline}
-> eston = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}right {c |}{res}        612    .2369281    .4255456          0          1

{txt}
{com}. tab right eston, chi2

           {txt}{c |}         eston
     right {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       445        467 {txt}{c |}{res}       912 
{txt}         1 {c |}{res}       143        145 {txt}{c |}{res}       288 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       588        612 {txt}{c |}{res}     1,200 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.0646  {txt} Pr = {res}0.799
{txt}
{com}. 
. by eston, sort : summarize center

{txt}{hline}
-> eston = 0

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}center {c |}{res}        588    .2738095    .4462921          0          1

{txt}{hline}
-> eston = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}center {c |}{res}        612    .2630719    .4406613          0          1

{txt}
{com}. tab center eston, chi2

           {txt}{c |}         eston
    center {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       427        451 {txt}{c |}{res}       878 
{txt}         1 {c |}{res}       161        161 {txt}{c |}{res}       322 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       588        612 {txt}{c |}{res}     1,200 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.1761  {txt} Pr = {res}0.675
{txt}
{com}. 
. by eston, sort : summarize russfirst

{txt}{hline}
-> eston = 0

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}russfirst {c |}{res}        588    .3758503    .4847541          0          1

{txt}{hline}
-> eston = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}russfirst {c |}{res}        612    .3839869    .4867526          0          1

{txt}
{com}. tab russfirst eston, chi2

           {txt}{c |}         eston
 russfirst {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       367        377 {txt}{c |}{res}       744 
{txt}         1 {c |}{res}       221        235 {txt}{c |}{res}       456 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       588        612 {txt}{c |}{res}     1,200 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.0843  {txt} Pr = {res}0.772
{txt}
{com}. 
. by eston, sort : summarize prefruss

{txt}{hline}
-> eston = 0

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prefruss {c |}{res}        588    .3146259    .4647621          0          1

{txt}{hline}
-> eston = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prefruss {c |}{res}        612    .3104575    .4630594          0          1

{txt}
{com}. tab prefruss eston, chi2

           {txt}{c |}         eston
  prefruss {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       403        422 {txt}{c |}{res}       825 
{txt}         1 {c |}{res}       185        190 {txt}{c |}{res}       375 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       588        612 {txt}{c |}{res}     1,200 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.0243  {txt} Pr = {res}0.876
{txt}
{com}. 
. **Table SI.2.5: randomization check
. summ eston age educ female left right center russfirst prefruss

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}eston {c |}{res}      1,200         .51    .5001084          0          1
{txt}{space 9}age {c |}{res}      1,200    50.64167    13.87836         18         74
{txt}{space 3}education {c |}{res}      1,200    3.760833    1.014638          1          5
{txt}{space 6}female {c |}{res}      1,200       .6075    .4885106          0          1
{txt}{space 8}left {c |}{res}      1,200    .1066667    .3088177          0          1
{txt}{hline 13}{c +}{hline 57}
{space 7}right {c |}{res}      1,200         .24    .4272612          0          1
{txt}{space 6}center {c |}{res}      1,200    .2683333    .4432768          0          1
{txt}{space 3}russfirst {c |}{res}      1,200         .38    .4855888          0          1
{txt}{space 4}prefruss {c |}{res}      1,200       .3125    .4637057          0          1
{txt}
{com}. probit eston educ female age left right center russfirst prefruss

{res}{txt}Iteration 0:{space 3}log likelihood = {res: -831.5366}  
Iteration 1:{space 3}log likelihood = {res:-827.26908}  
Iteration 2:{space 3}log likelihood = {res:-827.26895}  
Iteration 3:{space 3}log likelihood = {res:-827.26895}  
{res}
{txt}Probit regression{col 49}Number of obs{col 67}= {res}     1,200
{txt}{col 49}LR chi2({res}8{txt}){col 67}= {res}      8.54
{txt}{col 49}Prob > chi2{col 67}= {res}    0.3830
{txt}Log likelihood = {res}-827.26895{txt}{col 49}Pseudo R2{col 67}= {res}    0.0051

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}       eston{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}education {c |}{col 14}{res}{space 2} .0060209{col 26}{space 2} .0368867{col 37}{space 1}    0.16{col 46}{space 3}0.870{col 54}{space 4}-.0662756{col 67}{space 3} .0783174
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.1148903{col 26}{space 2} .0760638{col 37}{space 1}   -1.51{col 46}{space 3}0.131{col 54}{space 4}-.2639726{col 67}{space 3} .0341921
{txt}{space 9}age {c |}{col 14}{res}{space 2}-.0050493{col 26}{space 2} .0027213{col 37}{space 1}   -1.86{col 46}{space 3}0.064{col 54}{space 4}-.0103828{col 67}{space 3} .0002843
{txt}{space 8}left {c |}{col 14}{res}{space 2}-.1454226{col 26}{space 2} .1262701{col 37}{space 1}   -1.15{col 46}{space 3}0.249{col 54}{space 4}-.3929074{col 67}{space 3} .1020623
{txt}{space 7}right {c |}{col 14}{res}{space 2}-.0954648{col 26}{space 2} .1004493{col 37}{space 1}   -0.95{col 46}{space 3}0.342{col 54}{space 4}-.2923418{col 67}{space 3} .1014123
{txt}{space 6}center {c |}{col 14}{res}{space 2}-.0869888{col 26}{space 2}  .092425{col 37}{space 1}   -0.94{col 46}{space 3}0.347{col 54}{space 4}-.2681385{col 67}{space 3} .0941609
{txt}{space 3}russfirst {c |}{col 14}{res}{space 2} .0489453{col 26}{space 2} .1207975{col 37}{space 1}    0.41{col 46}{space 3}0.685{col 54}{space 4}-.1878135{col 67}{space 3}  .285704
{txt}{space 4}prefruss {c |}{col 14}{res}{space 2}-.0818171{col 26}{space 2} .1243115{col 37}{space 1}   -0.66{col 46}{space 3}0.510{col 54}{space 4}-.3254631{col 67}{space 3}  .161829
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3968474{col 26}{space 2}  .214066{col 37}{space 1}    1.85{col 46}{space 3}0.064{col 54}{space 4}-.0227142{col 67}{space 3}  .816409
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. test educ female age left right center russfirst prefruss

{p 0 7}{space 1}{text:( 1)}{space 1} {res}[eston]education = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} [eston]female = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} [eston]age = 0{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} [eston]left = 0{p_end}
{p 0 7}{space 1}{text:( 5)}{space 1} [eston]right = 0{p_end}
{p 0 7}{space 1}{text:( 6)}{space 1} [eston]center = 0{p_end}
{p 0 7}{space 1}{text:( 7)}{space 1} [eston]russfirst = 0{p_end}
{p 0 7}{space 1}{text:( 8)}{space 1} [eston]prefruss = 0{p_end}

{txt}{col 12}chi2(  8) ={res}    8.50
{txt}{col 10}Prob > chi2 =  {res}  0.3861
{txt}
{com}. 
. ***Table SI.2.6: robustness to covariates
. logit nationalist russian prefruss age

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-809.98438}  
Iteration 1:{space 3}log likelihood = {res:-769.45716}  
Iteration 2:{space 3}log likelihood = {res:-769.19439}  
Iteration 3:{space 3}log likelihood = {res:-769.19439}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}     1,200
{txt}{col 49}LR chi2({res}3{txt}){col 67}= {res}     81.58
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log likelihood = {res}-769.19439{txt}{col 49}Pseudo R2{col 67}= {res}    0.0504

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1} nationalist{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}russian {c |}{col 14}{res}{space 2} .5341514{col 26}{space 2} .1221382{col 37}{space 1}    4.37{col 46}{space 3}0.000{col 54}{space 4} .2947649{col 67}{space 3}  .773538
{txt}{space 4}prefruss {c |}{col 14}{res}{space 2}-1.087094{col 26}{space 2} .1428387{col 37}{space 1}   -7.61{col 46}{space 3}0.000{col 54}{space 4}-1.367053{col 67}{space 3}-.8071356
{txt}{space 9}age {c |}{col 14}{res}{space 2}-.0025604{col 26}{space 2} .0044939{col 37}{space 1}   -0.57{col 46}{space 3}0.569{col 54}{space 4}-.0113682{col 67}{space 3} .0062475
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.2131106{col 26}{space 2} .2494118{col 37}{space 1}   -0.85{col 46}{space 3}0.393{col 54}{space 4}-.7019487{col 67}{space 3} .2757276
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. 
. ***Table SI.2.7 Mismatched interview
. 
. gen mismatched=.
{txt}(1,200 missing values generated)

{com}. recode mismatched(.=0) if russian==1 & prefruss==1
{txt}(mismatched: 185 changes made)

{com}. recode mismatched(.=0) if russian==0 & prefruss==0
{txt}(mismatched: 422 changes made)

{com}. 
. recode mismatched (.=1) if russian==1 & prefruss==0
{txt}(mismatched: 403 changes made)

{com}. recode mismatched (.=1) if russian==0 & prefruss==1
{txt}(mismatched: 190 changes made)

{com}. 
. logit nationalist russian mismatched

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-809.98438}  
Iteration 1:{space 3}log likelihood = {res:-786.03799}  
Iteration 2:{space 3}log likelihood = {res:-785.96651}  
Iteration 3:{space 3}log likelihood = {res:-785.96651}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}     1,200
{txt}{col 49}LR chi2({res}2{txt}){col 67}= {res}     48.04
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log likelihood = {res}-785.96651{txt}{col 49}Pseudo R2{col 67}= {res}    0.0297

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1} nationalist{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}russian {c |}{col 14}{res}{space 2} .7852237{col 26}{space 2} .1328866{col 37}{space 1}    5.91{col 46}{space 3}0.000{col 54}{space 4} .5247708{col 67}{space 3} 1.045677
{txt}{space 2}mismatched {c |}{col 14}{res}{space 2}-.7182709{col 26}{space 2} .1330004{col 37}{space 1}   -5.40{col 46}{space 3}0.000{col 54}{space 4}-.9789468{col 67}{space 3}-.4575949
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.4305482{col 26}{space 2} .0924285{col 37}{space 1}   -4.66{col 46}{space 3}0.000{col 54}{space 4}-.6117048{col 67}{space 3}-.2493915
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. 
. ***Table SI.5.1, adjusting for generational differences
. gen adult91=0
{txt}
{com}. recode adult91(0=1) if age<=41
{txt}(adult91: 354 changes made)

{com}. tab adult91

    {txt}adult91 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        846       70.50       70.50
{txt}          1 {c |}{res}        354       29.50      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,200      100.00
{txt}
{com}. 
. logit nationalist russian 

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-809.98438}  
Iteration 1:{space 3}log likelihood = {res:-801.07203}  
Iteration 2:{space 3}log likelihood = {res:-801.06699}  
Iteration 3:{space 3}log likelihood = {res:-801.06699}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}     1,200
{txt}{col 49}LR chi2({res}1{txt}){col 67}= {res}     17.83
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log likelihood = {res}-801.06699{txt}{col 49}Pseudo R2{col 67}= {res}    0.0110

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1} nationalist{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}russian {c |}{col 14}{res}{space 2} .4986134{col 26}{space 2} .1185383{col 37}{space 1}    4.21{col 46}{space 3}0.000{col 54}{space 4} .2662826{col 67}{space 3} .7309442
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.6348783{col 26}{space 2} .0849528{col 37}{space 1}   -7.47{col 46}{space 3}0.000{col 54}{space 4}-.8013827{col 67}{space 3}-.4683738
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. logit nationalist russian adult91

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-809.98438}  
Iteration 1:{space 3}log likelihood = {res:-800.87984}  
Iteration 2:{space 3}log likelihood = {res:-800.87449}  
Iteration 3:{space 3}log likelihood = {res:-800.87449}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}     1,200
{txt}{col 49}LR chi2({res}2{txt}){col 67}= {res}     18.22
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0001
{txt}Log likelihood = {res}-800.87449{txt}{col 49}Pseudo R2{col 67}= {res}    0.0112

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1} nationalist{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}russian {c |}{col 14}{res}{space 2} .4951517{col 26}{space 2} .1186761{col 37}{space 1}    4.17{col 46}{space 3}0.000{col 54}{space 4} .2625507{col 67}{space 3} .7277526
{txt}{space 5}adult91 {c |}{col 14}{res}{space 2}-.0809662{col 26}{space 2} .1306354{col 37}{space 1}   -0.62{col 46}{space 3}0.535{col 54}{space 4}-.3370069{col 67}{space 3} .1750745
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} -.609433{col 26}{space 2} .0942091{col 37}{space 1}   -6.47{col 46}{space 3}0.000{col 54}{space 4}-.7940795{col 67}{space 3}-.4247865
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. **Table SI.7.1, exploring heterogeneous treatment effects
. 
. gen russprefruss=(russian*prefruss)
{txt}
{com}. logit nationalist russian prefruss russprefruss

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-809.98438}  
Iteration 1:{space 3}log likelihood = {res:-748.55925}  
Iteration 2:{space 3}log likelihood = {res:-746.55389}  
Iteration 3:{space 3}log likelihood = {res:-746.54969}  
Iteration 4:{space 3}log likelihood = {res:-746.54969}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}     1,200
{txt}{col 49}LR chi2({res}3{txt}){col 67}= {res}    126.87
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log likelihood = {res}-746.54969{txt}{col 49}Pseudo R2{col 67}= {res}    0.0783

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1} nationalist{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}russian {c |}{col 14}{res}{space 2} .0787066{col 26}{space 2} .1394464{col 37}{space 1}    0.56{col 46}{space 3}0.572{col 54}{space 4}-.1946034{col 67}{space 3} .3520165
{txt}{space 4}prefruss {c |}{col 14}{res}{space 2}-2.408048{col 26}{space 2} .2943216{col 37}{space 1}   -8.18{col 46}{space 3}0.000{col 54}{space 4}-2.984907{col 67}{space 3}-1.831188
{txt}russprefruss {c |}{col 14}{res}{space 2} 2.114394{col 26}{space 2} .3446766{col 37}{space 1}    6.13{col 46}{space 3}0.000{col 54}{space 4} 1.438841{col 67}{space 3} 2.789948
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} -.123379{col 26}{space 2} .0975438{col 37}{space 1}   -1.26{col 46}{space 3}0.206{col 54}{space 4}-.3145613{col 67}{space 3} .0678033
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. 
{txt}end of do-file

{com}. exit, clear
